import React, { useEffect } from 'react';
import { RouteComponentProps } from 'react-router-dom';

const Login = (router: RouteComponentProps) => {
    useEffect(() => {
        if (sessionStorage.getItem('token')) {
            router.history.replace('/')
        }
    }, [])
    return (
        <div>
            Login
        </div>
    );
};

export default Login;